<template>
  <div class="custom-table" v-loading="loading">
    <div v-if="!issues.length" class="easy-container no-data">{{ loading ? '' : '暂无数据' }}</div>
    <issues-list-item v-for="item in issues" :key="item.id" :issue="item" />
  </div>
</template>

<script>
import IssuesListItem from './list-item';

export default {
  name: 'issues-list',
  components: {
    IssuesListItem,
  },
  props: {
    issues: Array,
    loading: Boolean,
  },
};
</script>

<style></style>
